home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
5_12.lha
/
5_12
/
5_12a.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
455b
|
24 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h>
/ bogus class which prints out messages
/ upon construction and destruction
lass bogus
ublic:
bogus() { cout << "Initialize\n"; }
~bogus() { cout << "Clean up\n"; }
;
stream &cout2 = cout;
define cout class bogus y; cout2
ain()
cout << "Hello, world\n";
return 0; // DELETE